<?php

/**
 * 制作者：九哥
 * 业务：用户接口
 * 时间：2019-03-07
 */


Route::group(['prefix'=>'member','namespace' => 'Member'],function(){
    Route::post('yzm','LoginController@sendYzm'); //验证码
    Route::post('regist','LoginController@doRegist'); //注册
    Route::post('login','LoginController@doLogin'); //登陆
    Route::post('pwd','LoginController@setPwd'); //密码重置
    Route::post('indentity','LoginController@setIndentity'); //设置主体
    Route::post('upload/img', 'LoginController@setUploadImg'); //异步上传图片
    /**
     * 员工资料
     */
    Route::post('birthday','LoginController@getBirthDay'); //获取生日的天
    Route::post('region','LoginController@getRegions'); //省市区联动
    Route::post('upload','StaffController@addComInfo'); //同步上传图片
    //员工企业信息
    Route::post('staff/show','StaffController@getShow'); //获取资料
    Route::post('staff/modify','StaffController@setModify'); //更新资料
    Route::post('staff/show2','StaffController@getShow2'); //有数据则获取资料2
    Route::post('staff/combyradio','StaffController@getComRadioList'); //无数据则选项
    Route::post('staff/option','StaffController@setOptionModify');
    //公司求职意向
    Route::post('staff/com-will','StaffController@getComWill'); //获取员工公司求职意向
    Route::post('staff/set-com-will','StaffController@setComWill'); //获取员工公司求职意向
    Route::post('staff/com-file','StaffController@getComFiles'); //获取认证
    Route::post('staff/com-file-upload','StaffController@setComFileUpload'); //同步上传认证
    Route::post('staff/com-file-set','StaffController@setComFileLink'); //认证图片链接设置
    //工厂求职意向
    Route::post('staff/fac-will','StaffController@getFacWills'); //获取员工工厂求职意向
    Route::post('staff/set-fac-will','StaffController@setFacWills'); //设置员工工厂求职意向
    //职位
    Route::post('staff/joblist','StaffController@getJobs');
    //资料百分比
    Route::post('staff/per','StaffController@getUserInfoPer');

    /**
     * 企业资料：工厂
     */
    Route::post('factory/typelist','FactoryController@getFacTypeList'); //工厂类型
    Route::post('factory/show','FactoryController@getComShow');
    Route::post('factory/upload','FactoryController@setUpload'); //同步上传图片
    Route::post('factory/outtype','FactoryController@getOutTypeList'); //业务类型
    Route::post('factory/modify','FactoryController@setModify'); //更新工厂信息
    //工厂认证
    Route::post('factory/filelist','FactoryController@getFileList'); //获取企业认证
    Route::post('factory/file-upload','FactoryController@setFileUpload'); //企业认证
    Route::post('factory/file-set','FactoryController@setFileLink'); //企业认证链接设置
    //产品
    Route::post('factory/product-list','FactoryController@getProductList'); //获取
    Route::post('factory/fac-pro-set','FactoryController@setFacProduct'); //设置
    //工厂设备
    Route::post('factory/fac-equip-list','FactoryController@getFacEquipList'); //获取
    Route::post('factory/fac-equip-set','FactoryController@setFacEquip'); //设置
    //工厂产量产能
    Route::post('factory/fac-yield-list','FactoryController@getFacYieldList'); //获取
    Route::post('factory/fac-yield-set','FactoryController@setFacYield'); //设置
    //工厂环境
    Route::post('factory/fac-env-file','FactoryController@getFacEnvFile'); //获取
    Route::post('factory/fac-env-upload','FactoryController@setFacEnvUpload'); //同步上传
    Route::post('factory/fac-env-set','FactoryController@setFacEnvLink'); //链接设置
    //工厂原料面料
    Route::post('factory/fac-fabric-list','FactoryController@getFacFabricList'); //获取
    Route::post('factory/fac-fabric-set','FactoryController@setFacFabric'); //设置
    //资料百分比
    Route::post('factory/per','FactoryController@getFacInfoPer');

    /**
     * 企业资料：公司
     */
    Route::post('company/show','CompanyController@getComShow');
    Route::post('company/outtype','CompanyController@getOutTypeList');
    Route::post('company/upload','CompanyController@setUpload');
    Route::post('company/modify','CompanyController@setModify');
    //公司认证
    Route::post('company/filelist','CompanyController@getFileList'); //获取公司认证
    Route::post('company/file-upload','CompanyController@setFileUpload'); //认证同步上传
    Route::post('company/file-set','CompanyController@setFileLink'); //认证链接设置
    Route::post('company/typelist','CompanyController@getFacTypeList'); //工厂类型
    //产品
    Route::post('company/product-list','CompanyController@getProductList'); //获取
    Route::post('company/fac-pro-set','CompanyController@setProduct'); //设置
    //产品风格
    Route::post('company/style-list','CompanyController@getStyleList'); //获取
    Route::post('company/com-style-set','CompanyController@setStyle'); //设置
    //产品种类
    Route::post('company/com-pro-type-list','CompanyController@getComProTypeList'); //获取
    Route::post('company/com-pro-type-set','CompanyController@setComProType'); //设置
    Route::post('company/com-pro-type-set2','CompanyController@setComProType2'); //设置
    //款式数量
    Route::post('company/com-design-list','CompanyController@getComDesignList'); //获取
    Route::post('company/com-design-set','CompanyController@setComDesign'); //设置
    //公司的工厂设备
    Route::post('company/com-equip-list','CompanyController@getComEquipList'); //获取
    Route::post('company/com-equip-set','CompanyController@setComEquip'); //设置
    //公司产量产能
    Route::post('company/com-yield-list','CompanyController@getComYieldList'); //获取
    Route::post('company/com-yield-set','CompanyController@setComYield'); //设置
    //公司环境
    Route::post('company/com-env-file','CompanyController@getComEnvFile'); //获取
    Route::post('company/com-env-upload','CompanyController@setComEnvUpload'); //同步设置
    Route::post('company/com-env-set','CompanyController@setComEnvLink'); //链接设置
    //公司原料面料
    Route::post('company/com-fabric-list','CompanyController@getComFabricList'); //获取
    Route::post('company/com-fabric-set','CompanyController@setComFabric'); //设置
    //资料百分比
    Route::post('company/per','CompanyController@getComInfoPer');

    //用户须知
    Route::post('usernotice','LoginController@setUserNotice');
});